﻿@model BskLeague.Models.SeasonTeamPlayer

@{
    ViewBag.Title = "Nowy wpis na sezon";
}

<h3>Nowy wpis na sezon</h3>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>


@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

        <div class="editor-label">
            @Html.LabelFor(model => model.Team.TeamName)
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.TeamId, ViewBag.Teams as List<SelectListItem>)
            @Html.ValidationMessageFor(model => model.TeamId)
        </div>

        <div class="editor-label">
            Zawodnik:
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.PlayerId, ViewBag.Players as List<SelectListItem>)
            @Html.ValidationMessageFor(model => model.PlayerId)
        </div>

        <p>
            <input type="submit" value="Utwórz" />
        </p>
}

<div>
    @Html.ActionLink("Powrót do listy", "ManageSTP")
</div>
